-- || Created by Revelse

CustomWeapons = inherit(Object)

function CustomWeapons:constructor()
	self.m_Weapons = {}
end

function CustomWeapons:createWeaponTeam(teamName)
	self.m_Weapons[teamName] = {}
end

function CustomWeapons:addWeapon(teamName,weaponID,ammo)
	table.insert(self.m_Weapons[teamName],{ WEAPON = weaponID, AMMO = ammo })
end

function CustomWeapons:getWeapons(teamName)
	return self.m_Weapons[teamName]
end

function CustomWeapons:setWeapons(player,teamName)
	setTimer ( 
	function ()
		for _, v in ipairs(self.m_Weapons[teamName]) do
			giveWeapon(player,v.WEAPON,v.AMMO)
		end
	end,50,1) 
end